projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d1196
)
headerbar: Don't leak widgets
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 10 Nov 2016 20:03:16 +0000
(15:03 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 10 Nov 2016 20:03:35 +0000
(15:03 -0500)
We were not properly freeing separators that we end up
not using.
https://bugzilla.gnome.org/show_bug.cgi?id=774066
gtk/gtkheaderbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkheaderbar.c
b/gtk/gtkheaderbar.c
index 592abe3d53a48a145d96a08bb15f275024ad7252..e630432b2e93eb00f71c45230ad71a35d383af0e 100644
(file)
--- a/
gtk/gtkheaderbar.c
+++ b/
gtk/gtkheaderbar.c
@@
-458,8
+458,10
@@
_gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
if (n_children == 0)
{
- gtk_widget_destroy (box);
- gtk_widget_destroy (separator);
+ g_object_ref_sink (box);
+ g_object_unref (box);
+ g_object_ref_sink (separator);
+ g_object_unref (separator);
continue;
}